<extend name="Public/base" />
<block name="head_css">
	<link rel="stylesheet" href="__SALE_V3__/css/brand.pkg.css">
</block>
<block name="content"> 
 <div class="g-crumb">
        <div class="m-crumb">{$meta_title} > 更多品牌</div>
    </div>
    <div class="g-bd">
        <notempty name="goods_list">
	        <div class="content">
	            <div class="row g-tit mr-hot">热卖推荐 <span class="english">HOT SALES</span></div>
	        </div>
	        <div class="g-goods">
	            <volist name="goods_list" id="vo" >
			            <a href="{$vo.goods_link}" class="block m-goods">
			                <div class="img">
			                	<if condition="$vo.state_1 eq 3">
			                		<div class="mask">
	                        			<div class="mask-text">已售罄</div>
	                    			</div>
			                	</if>
			                    <img src="{$vo.goods_thumb}">
			                </div>
			                <p class="name">{$vo.goods_name} </p>
			                <span class="price-now">¥{$vo.shop_price}</span>
			                <span class="price-old">¥{$vo.market_price}</span>
			            </a>
			        </volist>
	       	 </div>
       </notempty>
        <div class="content">
            <div class="row g-tit mr-brand">品牌分类 <span class="english">BRANDS</span></div>
        </div>

        
        <script type="text/template" id="tpl-categorys">
            <div class="row g-brands">
                <ul id="j-name-list">
                    <%for(k in model.list){%>
                        <li data-index = "<%=k%>" class="brand-name <%if(0 == k){%> active<%}%>">
                            <%=model.list[k].shop_category_name%>
                        </li>
                    <%}%>
                </ul>
            </div>
        </script>

        
        <script type="text/template" id="tpl-brands">
            <%for(var i in model.list[model.active_index].children){%>
                <%var item = model.list[model.active_index].children[i]%>
                <a href="<%=item.shop_link%>" class="m-logo-each">
                    <span class="each-img">
                        <img src="<%=item.logo_id%>">
                    </span>
                </a>
            <%}%>
        </script>

        <div id="j-brand-list">
            
        </div>

        <div class="row g-brand-logo" id="j-brands">
            
        </div>

        <div id="j-nomore" class="nomore" style="display:none">
            <img src="http://activityfiles.oss-cn-hangzhou.aliyuncs.com/2016/2016/03/03-15-56/56d7ee4206888.png" height="24"><a>更多品牌即将上架，敬请期待!</a>
        </div>

    </div>
</block>
<block name="foot_js">   
    <script type="text/javascript">
    var list = {$shop_list};
    </script>
    <script src="__SALE_V3__/js/brand.pkg.js"></script>
</block>